package com.tyk.bookstore.front.cart.model.vo;


import com.tyk.bookstore.front.common.core.model.vo.PageVo;
import com.tyk.bookstore.front.product.model.enume.BookState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class CartPageVo extends PageVo<CartPageVo.ShoppingCart> {
    @Data
    public static class ShoppingCart {
        @Schema(description = "书籍ID")
        private Long bookId;
        @Schema(description = "购买数量")
        private Integer num;
        @Schema(description = "选中")
        private Boolean checked;
        @Schema(description = "书籍封面")
        private String cover;
        @Schema(description = "书籍标题")
        private String title;
        @Schema(description = "书籍价格")
        private BigDecimal price;
        @Schema(description = "书籍状态")
        private BookState state;
    }
}
